# 元组，不可变，不支持append(), remove()
example_tuple = ("键盘", "键帽")
# 列表，可变，支持append(), remove()
example_list = ["键盘", "键帽"]


# 元组可以做key，列表不能做key
contacts = {("张伟", 23):"",
            ("张伟", 34):"",
            ("张伟", 56):""}

print(contacts)



contacts = {"小明":"13700000000",
            "小花":"13700000001",
            "小美":"13700000002"}

print("小明" in contacts)
print("小粉" in contacts)
print(contacts)
print(len(contacts))

contacts["小林"] = "13700000003"
print(contacts)
print(len(contacts))